import 'package:common/common.dart';
import 'package:fluro/fluro.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:main_plugin/main_page.dart';

class MachineRoutes extends ModuleRouteManager {
  static MachineRoutes _instance;
  List<RouteEntry> _routes;

  @override
  List<RouteEntry> get routes => _routes;

  factory MachineRoutes() {
    if (_instance == null) {
      _instance = MachineRoutes._();
    }
    return _instance;
  }

  MachineRoutes._() {
    _routes = [
      RouteEntry('/home',
          handler: Handler(handlerFunc: (BuildContext context, Map<String, dynamic> params) => MainPage())),
    ];
  }
}
